package com.rerun.service;

import java.util.List;
import java.util.Set;

import com.baomidou.mybatisplus.service.IService;
import com.rerun.entity.SysRoleMenu;

/**
 * SysRoleMenu 表数据服务层接口
 */
public interface ISysRoleMenuService extends IService<SysRoleMenu> {

    /**
     * 角色授权
     *
     * @param roleId  the role id
     * @param menuIds the menu ids
     */
    void addAuth(String roleId, String[] menuIds);

    /**
     * 获取指定角色的权限
     *
     * @param roleId the role id
     * @return the list
     */
    List<SysRoleMenu> selectByRole(String roleId);

    /**
     * Find menus by uid set.
     *
     * @param id the id
     * @return the set
     */
    Set<String> findMenusByUid(String id);


}